#include<stdio.h>
/*int main()
{
	int num = -1;
	int n = num >> 1;
	printf("n=%d\n", n);
	printf("num=%d\n", num);
	return 0;
}*/
int main()
{
	int num1 = -3;
	int num2 = 5;
	printf("%d\n", num1&num2);
	printf("%d\n", num1|num2);
	printf("%d\n", num1^num2);
	printf("%d\n", ~0);
	return 0;
}